package org.javaboy.redis_template.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 对象 -> JSON 字符串，序列化
 * JSON 字符串 -> 对象，反序列化
 */
public class User /*implements Serializable*/ {
    private String name;
    private Integer age;

    private Date birthday;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                '}';
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
